package com.tikou.ui.view.pieview;

import java.util.UUID;

/**
 * Created by Tikou on 2017/11/28.
 * 作者：TianNuo
 * 邮箱：1320917731@qq.com
 * 说明：具体的饼状图数据
 * 参考：
 */

public final class PieInfoImpl {
    private final String id;
    private final IPieInfo mPieInfo;
    private float startAngle;
    private float endAngle;

    public PieInfoImpl(IPieInfo mPieInfo) {
        this.mPieInfo = mPieInfo;
        this.id= UUID.randomUUID().toString();
    }

    public static PieInfoImpl create(IPieInfo info){
        return new PieInfoImpl(info);
    }
}
